package top.xunfong.knowledge.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * 上传分片的请求参数
 */
@Data
public class UploadPartDTO {
    /**
     * 分片上传的id
     */
    @NotNull(message = "分片上传的id不能为空")
    private String uploadId;
    @NotNull(message = "分片编号不能为空")
    private Integer partNumber;
    @NotNull(message = "文件不能为空")
    private MultipartFile file;
    @NotNull(message = "文件md5值不能为空")
    private String fileMd5;
}